Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cmake target not generated with CMake2 generator when only system… #17868

Merged

Conversation

hwwan80
Copy link
Contributor

@hwwan80 hwwan80 commented Feb 27, 2025

Changelog: Omit
Docs: Omit

…_libs are defined

When trying to use the recipes in conan-center-index which refer to system version such as xorg/system or opengl/system, the generated target cmake file do not contain the required target when using the CMakeDep2 generator as it only defined system_libs in cpp_info. This PR attempt to fix this

@CLAassistant
Copy link

CLAassistant commented Feb 27, 2025

CLA assistant check
All committers have signed the CLA.

@memsharded memsharded self-assigned this Feb 28, 2025
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hwwan80

Thanks for your contribution.

This would need a bit more testing, I'll try to have a look and add some testing to cover this case to move this forward for next release.

@memsharded memsharded added this to the 2.14.0 milestone Feb 28, 2025
@memsharded memsharded merged commit 627b80e into conan-io:develop2 Mar 3, 2025
15 checks passed
@memsharded
Copy link
Member

memsharded commented Mar 3, 2025

Merged with a new added test, it will be in next Conan 2.14

Thanks very much for your contribution again, and thanks specially for testing the new incubating CMakeConfigDeps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants